include dedssrc

DEDSOBJ := $(DEDSSRC:.c=.o)

CFLAGS := -O3 -s
INCLUDES := -I..

all : libdeds.a

libdeds.a : $(DEDSOBJ)
	ar rs $@ $^

%.o : %.c
	gcc -c $(INCLUDES) $(CFLAGS) $^ -o $@

define delobj 
$(shell del $(subst /,\,$(obj)))
endef

clean :
	$(foreach obj, $(DEDSOBJ), $(delobj))
	-del *.a


